/**
 *  后台餐桌接口
 */
import request from '@/utils/request'

export function getDinList(params) {
  return request({
    url: '/dini/dinshow',
    method: 'get',
    params
  })
}

export function dinAdd(data) {
  return request({
    url: '/dini/credin',
    method: 'post',
    data
  })
}

export function dinEdit(data) {
  return request({
    url: '/dini/edtdin',
    method: 'post',
    data
  })
}

export function getDorList(params) {
  return request({
    url: '/dini/dorshow',
    method: 'get',
    params
  })
}

export function dorAdd(data) {
  return request({
    url: '/dini/credor',
    method: 'post',
    data
  })
}

export function dorEdit(data) {
  return request({
    url: '/dini/edtdor',
    method: 'post',
    data
  })
}

export function dorChk(data) {
  return request({
    url: '/dini/dorchk',
    method: 'post',
    data
  })
}

export function dorSet(data) {
  return request({
    url: '/dini/dorset',
    method: 'post',
    data
  })
}

export function getDorDet(params) {
  return request({
    url: '/dini/dordetail',
    method: 'get',
    params
  })
}

export function addDorP(data) {
  return request({
    url: '/dini/credorp',
    method: 'post',
    data
  })
}

export function delDorP(data) {
  return request({
    url: '/dini/deldorp',
    method: 'post',
    data
  })
}

export function dorsel(data) {
  return request({
    url: '/dini/dorsel',
    method: 'post',
    data
  })
}

export function store(data) {
  return request({
    url: '/dini/store',
    method: 'post',
    data
  })
}

export function doPay(data) {
  return request({
    url: '/dini/dopay',
    method: 'post',
    data
  })
}

export function refOrd(data) {
  return request({
    url: '/dini/reford',
    method: 'post',
    data
  })
}

//场景接口
export function getSenList(params) {
  return request({
    url: '/dini/senshow',
    method: 'get',
    params
  })
}

export function addSen(data) {
  return request({
    url: '/dini/cresen',
    method: 'post',
    data
  })
}

export function editSen(data) {
  return request({
    url: '/dini/edtsen',
    method: 'post',
    data
  })
}
